home *** CD-ROM | disk | FTP | other *** search
- this.nNamugi = _root.strClick1 - _root.strClick2;
- if(this.nNamugi == 10 || this.nNamugi == 1 || this.nNamugi == -10 || this.nNamugi == -1)
- {
- eval("_root.mcB.mcM" + _root.strClick1).gotoAndStop(eval("_root.mcB.mcM" + _root.strClick2).nType);
- eval("_root.mcB.mcM" + _root.strClick2).gotoAndStop(eval("_root.mcB.mcM" + _root.strClick1).nType);
- _root.arrM[_root.strClick1.substr(0,1)][_root.strClick1.substr(1,1)] = eval("_root.mcB.mcM" + _root.strClick2).nType;
- _root.arrM[_root.strClick2.substr(0,1)][_root.strClick2.substr(1,1)] = eval("_root.mcB.mcM" + _root.strClick1).nType;
- eval("_root.mcB.mcM" + _root.strClick1).nType = _root.arrM[_root.strClick1.substr(0,1)][_root.strClick1.substr(1,1)];
- eval("_root.mcB.mcM" + _root.strClick2).nType = _root.arrM[_root.strClick2.substr(0,1)][_root.strClick2.substr(1,1)];
- if(this.nNamugi == 10)
- {
- eval("_root.mcB.mcM" + _root.strClick1 + ".mcM").gotoAndPlay("flUp");
- eval("_root.mcB.mcM" + _root.strClick2 + ".mcM").gotoAndPlay("flDown");
- }
- else if(this.nNamugi == 1)
- {
- eval("_root.mcB.mcM" + _root.strClick1 + ".mcM").gotoAndPlay("flRight");
- eval("_root.mcB.mcM" + _root.strClick2 + ".mcM").gotoAndPlay("flLeft");
- }
- else if(this.nNamugi == -10)
- {
- eval("_root.mcB.mcM" + _root.strClick1 + ".mcM").gotoAndPlay("flDown");
- eval("_root.mcB.mcM" + _root.strClick2 + ".mcM").gotoAndPlay("flUp");
- }
- else if(this.nNamugi == -1)
- {
- eval("_root.mcB.mcM" + _root.strClick1 + ".mcM").gotoAndPlay("flLeft");
- eval("_root.mcB.mcM" + _root.strClick2 + ".mcM").gotoAndPlay("flRight");
- }
- this.nMatch = 0;
- _root.arrInitMatch = new Array();
- this.arrNumber = new Array();
- this.arrAnimal = new Array();
- a = 0;
- while(a <= 12)
- {
- b = 0;
- while(b <= 12)
- {
- if(_root.arrM[a][b] == _root.arrM[a][b + 1] & _root.arrM[a][b + 1] == _root.arrM[a][b + 2])
- {
- if(_root.strClick1.substr(0,1) == a || _root.strClick2.substr(0,1) == a)
- {
- if(_root.strClick1.substr(1,1) == b || _root.strClick1.substr(1,1) == String(b + 1) || _root.strClick1.substr(1,1) == String(b + 2) || _root.strClick2.substr(1,1) == b || _root.strClick2.substr(1,1) == String(b + 1) || _root.strClick2.substr(1,1) == String(b + 2))
- {
- if(_root.mcB.mcS.isGaro == 1 & a == _root.nBonus)
- {
- _root.mcB.mcS.isGaro = 0;
- _root.nBonus = "";
- _root.isBonus = 1;
- }
- _root.arrInitMatch[this.nMatch] = String(a) + String(b);
- this.nMatch = this.nMatch + 1;
- _root.arrInitMatch[this.nMatch] = String(a) + String(b + 1);
- this.nMatch = this.nMatch + 1;
- _root.arrInitMatch[this.nMatch] = String(a) + String(b + 2);
- this.nMatch = this.nMatch + 1;
- }
- }
- }
- if(_root.arrM[a][b] == _root.arrM[a + 1][b] & _root.arrM[a + 1][b] == _root.arrM[a + 2][b])
- {
- if(_root.strClick1.substr(0,1) == a || _root.strClick1.substr(0,1) == String(a + 1) || _root.strClick1.substr(0,1) == String(a + 2) || _root.strClick2.substr(0,1) == a || _root.strClick2.substr(0,1) == String(a + 1) || _root.strClick2.substr(0,1) == String(a + 2))
- {
- if(_root.strClick1.substr(1,1) == b || _root.strClick2.substr(1,1) == b)
- {
- if(_root.mcB.mcS.isSero == 1 & a == _root.nBonus)
- {
- _root.mcB.mcS.isSero = 0;
- _root.nBonus = "";
- _root.isBonus = 1;
- }
- _root.arrInitMatch[this.nMatch] = String(a) + String(b);
- this.nMatch = this.nMatch + 1;
- _root.arrInitMatch[this.nMatch] = String(a + 1) + String(b);
- this.nMatch = this.nMatch + 1;
- _root.arrInitMatch[this.nMatch] = String(a + 2) + String(b);
- this.nMatch = this.nMatch + 1;
- }
- }
- }
- b++;
- }
- a++;
- }
- if(_root.isBonus == 1)
- {
- _root.isBonus = 0;
- eval("_root.mcB.mcM" + _root.strClick2).nType = eval("_root.mcB.mcM" + _root.strClick2)._currentframe;
- a = 0;
- while(a <= 10)
- {
- b = 0;
- while(b <= 10)
- {
- if(_root.arrM[a][b] == eval("_root.mcB.mcM" + _root.strClick2).nType)
- {
- _root.arrInitMatch[this.nMatch] = String(a) + String(b);
- this.nMatch = this.nMatch + 1;
- }
- b++;
- }
- a++;
- }
- }
- this.nMatch = 0;
- d = 0;
- while(d < _root.arrInitMatch.length)
- {
- isCheck = 1;
- if(this.nMatch >= 1)
- {
- c = 0;
- while(c < this.nMatch)
- {
- if(this.arrNumber[c] == _root.arrInitMatch[d])
- {
- isCheck = 0;
- }
- c++;
- }
- }
- if(isCheck)
- {
- this.arrNumber[this.nMatch] = _root.arrInitMatch[d];
- this.nDeleteAnimal = eval("_root.mcB.mcM" + this.arrNumber[this.nMatch])._currentframe - 1;
- if(this.nDeleteAnimal == 1)
- {
- _root.plus_obj_num = 1;
- _root.mcP.nA1 = _root.mcP.nA1 + 1;
- }
- else if(this.nDeleteAnimal == 2)
- {
- _root.plus_obj_num = 2;
- _root.mcP.nA2 = _root.mcP.nA2 + 1;
- }
- else if(this.nDeleteAnimal == 3)
- {
- _root.plus_obj_num = 3;
- _root.mcP.nA3 = _root.mcP.nA3 + 1;
- }
- else if(this.nDeleteAnimal == 4)
- {
- _root.plus_obj_num = 4;
- _root.mcP.nA4 = _root.mcP.nA4 + 1;
- }
- else if(this.nDeleteAnimal == 5)
- {
- _root.plus_obj_num = 5;
- _root.mcP.nA5 = _root.mcP.nA5 + 1;
- }
- else if(this.nDeleteAnimal == 6)
- {
- _root.plus_obj_num = 6;
- _root.mcP.nA6 = _root.mcP.nA6 + 1;
- }
- else if(this.nDeleteAnimal == 7)
- {
- _root.plus_obj_num = 7;
- _root.mcP.nA7 = _root.mcP.nA7 + 1;
- }
- this.arrAnimal[this.nMatch] = this.nDeleteAnimal;
- this.nMatch = this.nMatch + 1;
- }
- d++;
- }
- if(this.arrNumber.length)
- {
- if(this.arrNumber.length == 3)
- {
- _root.Score += 10;
- }
- else if(this.arrNumber.length == 4)
- {
- _root.Score += 20;
- }
- else if(this.arrNumber.length == 5)
- {
- _root.Score += 30;
- }
- else
- {
- _root.Score += 40;
- }
- }
- _root.mcAC3.gotoAndPlay("flC");
- }
- else
- {
- _root.vol4.start();
- eval("_root.mcB.mcM" + _root.strClick1 + ".mcM").gotoAndPlay("flD");
- _root.mcKC.nNamugi = 0;
- _root.strClick1 = "";
- _root.strClick2 = "";
- this.gotoAndStop(1);
- }
-